Skip to content

Fix crash in broadcaster max price calculation.#3864

Merged
j0sh merged 1 commit intomasterfrom
ja/max-price-crash
Jan 30, 2026
Merged

Fix crash in broadcaster max price calculation.#3864
j0sh merged 1 commit intomasterfrom
ja/max-price-crash

Conversation

@j0sh
Copy link
Collaborator

@j0sh j0sh commented Jan 29, 2026

Usually there are constraints in place alongside the capabilities in order to set a per-capability price. However, if no constraints are set, there are no per-capability prices, so return the global max price instead.

This hasn't come up in prod (and fixes a crash) so shouldn't be a breaking change.

Usually there are constraints in place alongside the capabilities
in order to set a per-capability price. However, if no constraints
are set, there are no per-capability prices, so return the global max
price instead.

This hasn't come up in prod (and fixes a crash) so shouldn't be a
breaking change.
@j0sh j0sh requested review from eliteprox, leszko and mjh1 January 29, 2026 19:01
@github-actions github-actions bot added the go Pull requests that update Go code label Jan 29, 2026
Copy link
Collaborator

@eliteprox eliteprox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.17139%. Comparing base (ab55f82) to head (67b7d6a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #3864         +/-   ##
===================================================
+ Coverage   32.16326%   32.17139%   +0.00813%     
===================================================
  Files            170         170                 
  Lines          41308       41310          +2     
===================================================
+ Hits           13286       13290          +4     
+ Misses         27021       27020          -1     
+ Partials        1001        1000          -1     
Files with missing lines Coverage Δ
server/broadcast.go 79.98008% <100.00000%> (+0.03996%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab55f82...67b7d6a. Read the comment docs.

Files with missing lines Coverage Δ
server/broadcast.go 79.98008% <100.00000%> (+0.03996%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@j0sh j0sh merged commit a38b81a into master Jan 30, 2026
30 of 32 checks passed
@j0sh j0sh deleted the ja/max-price-crash branch January 30, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants